@extends('layout')

@section('content')
    <link rel="stylesheet" href="{{asset('css/about.css')}}">
    <div class="container about-content">
        <div class="row">
            <div class="col-sm-3" style="text-align: center;">
                <div class="nav flex-column nav-pills" id="v-pills-tab" role="tablist" aria-orientation="vertical">
                    @foreach($navs as $key => $item)
                        <a class="nav-link {{$type==$key?'active':''}}" href="?type={{$key}}" >{{$item}}</a>
                    @endforeach
                </div>
                <br>
                @component('gongao',['gonggao'=>$gonggao])
                @endcomponent
            </div>
            <div class="col-sm-9">

                <div class="tab-content" id="v-pills-tabContent">
                    <div class="tab-pane fade show active" id="v-pills-home" role="tabpanel" aria-labelledby="v-pills-home-tab">
                        <div class="content-container">
                            <div class="part-title-box">
                                <div class="part-title">{{$navs[$type]}}</div>
                            </div>

                            <div class="bbw-table border-radius">
                                <ul class="table-content">
                                    @foreach($knowledges as $item)
                                        <li>
                                            <a href="/knowledges/{{$item -> id}}" class="table-item ">
                                                <div>
                                                    <i class="fa fa-caret-right"></i>
                                                    <p>{{$item -> title}}</p>
                                                </div>
                                                <p class="item-date">{{$item -> creat_at}}</p>
                                            </a>
                                        </li>
                                    @endforeach
                                </ul>
                            </div>

                        </div>
                    </div>
                </div>
            </div>
        </div>
    </div>
@endsection
